/*
 * Huawei HiNIC PCI Express Linux driver
 * Copyright(c) 2017 Huawei Technologies Co., Ltd
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 */

#ifndef HISEC_ALG_H
#define HISEC_ALG_H

#include "hisec_common.h"

extern const char *crypt_alg_name[HISEC_CRYPTO_ALG_MAX];

#ifdef CONFIG_XFRM_OFFLOAD
int hisec_get_aead_gcm_info(void *hwdev, struct xfrm_state *xs, struct hisec_ipsec_alg_info *gcm_alg);
int hisec_get_aes_enc_info(void *hwdev, struct xfrm_state *xs, struct hisec_ipsec_alg_info *cbc_alg);
int hisec_get_auth_hmac_info(void *hwdev, struct xfrm_state *xs, struct hisec_ipsec_alg_info *hmac_alg);
#endif

#endif
